package cn.com.cifi.mars.mapper.mars;


import java.util.List;
import cn.com.cifi.mars.bean.bo.DictionaryCodeBO;
import cn.com.cifi.mars.bean.dto.DictionaryDto;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cn.com.cifi.mars.entity.common.SysDictionary;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yyd
 * @since 2019-09-12
 */
public interface SysDictionaryMapper extends BaseMapper<SysDictionary> {

	List<DictionaryDto>selectSysDictionaryPage(Page page,
		@Param("dictName")String dictName,
		@Param("typeCode")String typeCode);

    List<DictionaryCodeBO> selectByCodes(@Param("productCodes")List<String> productCodes);

    List<SysDictionary> selectDictionaryByType(List<String> codes);

	SysDictionary selectDictionaryByCode(@Param("code")String code);

	String selectDictValueByTypeCode(@Param("typeCode") String typeCode);
	
	List<SysDictionary> selectByTypeCode(@Param("typeCode") String typeCode);

}
